<template>
<onekit-page>
<onekit-view onekit-class="container">
	<div is="onekit-template-head" :DATA="`${JSON.stringify({title:'switch'})}`"></div>
	<onekit-view onekit-class="page-body">
		<onekit-view onekit-class="page-section page-section-gap">
			<onekit-view onekit-class="page-section-title">默认样式</onekit-view>
			<onekit-view onekit-class="body-view">
				<onekit-switch checked @Change="switch1Change"></onekit-switch>
				<onekit-switch @Change="switch2Change"></onekit-switch>
			</onekit-view>
		</onekit-view>
		<onekit-view onekit-class="page-section">
			<onekit-view onekit-class="page-section-title">推荐展示样式</onekit-view>
			<onekit-view onekit-class="weui-cells weui-cells_after-title">
				<onekit-view onekit-class="weui-cell weui-cell_switch">
					<onekit-view onekit-class="weui-cell__bd">开启中</onekit-view>
					<onekit-view onekit-class="weui-cell__ft">
						<onekit-switch checked></onekit-switch>
					</onekit-view>
				</onekit-view>
				<onekit-view onekit-class="weui-cell weui-cell_switch">
					<onekit-view onekit-class="weui-cell__bd">关闭</onekit-view>
					<onekit-view onekit-class="weui-cell__ft">
						<onekit-switch></onekit-switch>
					</onekit-view>
				</onekit-view>
			</onekit-view>
		</onekit-view>
	</onekit-view>
	<div is="onekit-template-foot"></div>
</onekit-view>
</onekit-page></template>
<script>
/* eslint-disable */
import Vue from 'vue';
import onekit_template_0 from '../../../../page/common/head.head.vue';Vue.component('onekit-template-head',onekit_template_0);
import onekit_template_1 from '../../../../page/common/foot.foot.vue';Vue.component('onekit-template-foot',onekit_template_1);
const ONEKIT_JSON= {
  "navigationBarTitleText": "switch",
  "usingComponents": {
    
  }
};
const ONEKIT_SJS = {
};
import wx from '../../../../../weixin2vue/wx.js';
import Macro from '../../../../../weixin2vue/Macro.js';
const {getApp,getCurrentPages} = Macro;
import Page from '../../../../../weixin2vue/OnekitPage.js';
import Component from '../../../../../weixin2vue/OnekitComponent.js';
export default Page(ONEKIT_JSON,[],ONEKIT_SJS,{
    "onShareAppMessage"(){
      return {
        "title":'switch',
        "path":'page/component/pages/switch/switch'
};
    },
    "switch1Change"(e){
      console.log('switch1 发生 change 事件，携带值为',e.detail.value);
    },
    "switch2Change"(e){
      console.log('switch2 发生 change 事件，携带值为',e.detail.value);
    }
});

</script>
<style 
 lang="css">
@import '/page/common/lib/weui.css';
</style>